package com.asialjim.wechat.database;

import com.asialjim.wechat.utils.JsonUtils;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.ibatis.type.JdbcType;

import java.io.Serializable;

/**
 * <h1><em>ASIAL JIM JAVA DOC</em></h1><hr/>
 * <h2>CLASS DESCRIPTION <i>[ NAME: DataBaseTableInfo ]</i></h2><strong>
 * <p> data base table info
 * </strong><p><p><em>Copyright &copy; Asial Jim Co., LTD</em><hr/>
 *
 * @author Asial Jim &nbsp;&nbsp; <span>Email:<a href="mailto:asialjim@hotmail.com">asialjim@hotmail.com</a> &nbsp;&nbsp; <a href="asialjim@qq.com">asialjim@qq.com</a></span>
 * @version 1.0.0
 * @since 2021/3/17   &nbsp;&nbsp; JDK 8
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class DataBaseTableInfo implements Serializable {
    private static final long serialVersionUID = -2231501953872518218L;

    private String propertyName;
    private JdbcType jdbcType;
    private Object value;

    @Override
    public String toString(){
        return JsonUtils.toJson(this);
    }
}
